/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.ispc.client.event;

/**
 * Created by Peter on 2016/7/26.
 */
public class ThrowExceptionEvent {
    private int code;
    private String message;

    /**
     * Constructor.
     */
    public ThrowExceptionEvent() {
    }

    /**
     * Constructor.
     *
     * @param message String
     */
    public ThrowExceptionEvent(String message) {
        this.message = message;
    }

    /**
     * Constructor.
     *
     * @param code    int error code
     * @param message String error message
     */
    public ThrowExceptionEvent(int code, String message) {
        this.message = message;
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
